﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 移除货件
    /// </summary>
    /// 

    public class FBAWarehouseDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public string response_time { get; set; }
        public int total { get; set; }
        public List<FBAWarehouse> data { get; set; }

    }

    public class FBAWarehouse
    {
        public string RowId { get; set; }

        public string id { get; set; }
        /// <summary>
        /// 仓库名	
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 店铺id【当仓库为共享仓时，sid为0返回】
        /// </summary>
        public string sid { get; set; }
        /// <summary>
        /// ASIN	
        /// </summary>
        public string asin { get; set; }
        /// <summary>
        /// 品名	
        /// </summary>
        public string product_name { get; set; }
        /// <summary>
        /// 预览图链接	
        /// </summary>
        public string small_image_url { get; set; }
        /// <summary>
        /// MSKU	
        /// </summary>
        public string seller_sku { get; set; }

        /// <summary>
        /// FNSKU	
        /// </summary>
        public string fnsku { get; set; }
        /// <summary>
        /// SKU	
        /// </summary>
        public string sku { get; set; }
        /// <summary>
        /// 分类文本	
        /// </summary>
        public string category_text { get; set; }
        /// <summary>
        /// 分类Id	
        /// </summary>
        public string cid { get; set; }
        /// <summary>
        /// 品牌文本	
        /// </summary>
        public string product_brand_text { get; set; }
        /// <summary>
        /// 品牌Id	
        /// </summary>
        public string bid { get; set; }
        /// <summary>
        /// 共享类型	
        /// </summary>
        public string share_type_;
        public string share_type
        {
            get { return share_type_; }

            set
            {
                if (value == "0") share_type_ = "非共享";
                else if (value == "1") share_type_ = "北美共享";
                else if (value == "1") share_type_ = "欧洲共享";
                else share_type_ = value;
            }
        }
        /// <summary>
        /// 总数	
        /// </summary>
        public decimal total { get; set; }
        /// <summary>
        /// 总价	
        /// </summary>
        public decimal total_price { get; set; }
        /// <summary>
        /// 可用总数	
        /// </summary>
        public decimal available_total { get; set; }
        /// <summary>
        /// 可用总数成本价	
        /// </summary>
        public decimal available_total_price { get; set; }
        /// <summary>
        /// FBA可售	
        /// </summary>
        public decimal afn_fulfillable_quantity { get; set; }
        /// <summary>
        /// FBA可售成本价	
        /// </summary>
        public decimal afn_fulfillable_quantity_price { get; set; }
        /// <summary>
        /// 待调仓	
        /// </summary>
        public decimal reserved_fc_transfers { get; set; }
        /// <summary>
        /// 待调仓成本价	
        /// </summary>
        public decimal reserved_fc_transfers_price { get; set; }
        /// <summary>
        /// 调仓中	
        /// </summary>
        public decimal reserved_fc_processing { get; set; }
        /// <summary>
        /// 调仓中成本价	
        /// </summary>
        public decimal reserved_fc_processing_price { get; set; }
        /// <summary>
        /// 待发货	
        /// </summary>
        public decimal reserved_customerorders { get; set; }
        /// <summary>
        /// 待发货成本价	
        /// </summary>
        public decimal reserved_customerorders_price { get; set; }
        /// <summary>
        /// FBM可售	
        /// </summary>
        public decimal quantity { get; set; }
        /// <summary>
        /// FBM可售成本价	
        /// </summary>
        public decimal quantity_price { get; set; }

        /// <summary>
        /// 不可售	
        /// </summary>
        public decimal afn_unsellable_quantity { get; set; }

        /// <summary>
        /// 不可售成本价	
        /// </summary>
        public decimal afn_unsellable_quantity_price { get; set; }

        /// <summary>
        /// 计划入库	
        /// </summary>
        public decimal afn_inbound_working_quantity { get; set; }

        /// <summary>
        /// 计划入库成本价	
        /// </summary>
        public decimal afn_inbound_working_quantity_price { get; set; }

        /// <summary>
        /// 在途	
        /// </summary>
        public decimal afn_inbound_shipped_quantity { get; set; }

        /// <summary>
        /// 在途成本价	
        /// </summary>
        public decimal afn_inbound_shipped_quantity_price { get; set; }

        /// <summary>
        /// 入库中	
        /// </summary>
        public decimal afn_inbound_receiving_quantity { get; set; }

        /// <summary>
        /// 入库中成本价	
        /// </summary>
        public decimal afn_inbound_receiving_quantity_price { get; set; }

        /// <summary>
        /// 实际在途	
        /// </summary>
        public decimal stock_up_num { get; set; }

        /// <summary>
        /// 实际在途成本价	
        /// </summary>
        public decimal stock_up_num_price { get; set; }

        /// <summary>
        /// 调查中数量	
        /// </summary>
        public decimal afn_researching_quantity { get; set; }

        /// <summary>
        /// 调查中数量成本价	
        /// </summary>
        public decimal afn_researching_quantity_price { get; set; }

        /// <summary>
        /// 总可用库存:可售+待调仓+调仓中【非ERP页面对应总库存】	
        /// </summary>
        public decimal total_fulfillable_quantity { get; set; }

        /// <summary>
        /// 0-1个月库龄	
        /// </summary>
        public decimal inv_age_0_to_30_days { get; set; }

        /// <summary>
        /// 0-1个月库龄成本价	
        /// </summary>
        public decimal inv_age_0_to_30_price { get; set; }

        /// <summary>
        /// 1-2个月库龄	
        /// </summary>
        public decimal inv_age_31_to_60_days { get; set; }

        /// <summary>
        /// 1-2个月库龄成本价	
        /// </summary>
        public decimal inv_age_31_to_60_price { get; set; }

        /// <summary>
        /// 2-3个月库龄	
        /// </summary>
        public decimal inv_age_61_to_90_days { get; set; }
        /// <summary>
        /// 2-3个月库龄成本价	
        /// </summary>
        public decimal inv_age_61_to_90_price { get; set; }

        /// <summary>
        /// 0-3个月库龄
        /// </summary>
        public decimal inv_age_0_to_90_days { get; set; }

        /// <summary>
        /// 0-3个月库龄成本价
        /// </summary>
        public decimal inv_age_0_to_90_price { get; set; }

        /// <summary>
        /// 3-6个月库龄
        /// </summary>
        public decimal inv_age_91_to_180_days { get; set; }

        /// <summary>
        /// 3-6个月库龄成本价	
        /// </summary>
        public decimal inv_age_91_to_180_price { get; set; }

        /// <summary>
        /// 6-9个月库龄	
        /// </summary>
        public decimal inv_age_181_to_270_days { get; set; }

        /// <summary>
        /// 6-9个月库龄成本价
        /// </summary>
        public decimal inv_age_181_to_270_price { get; set; }

        /// <summary>
        /// 9-11个月库龄	
        /// </summary>
        public decimal inv_age_271_to_330_days { get; set; }

        /// <summary>
        /// 9-11个月库龄成本价	
        /// </summary>
        public decimal inv_age_271_to_330_price { get; set; }

        /// <summary>
        /// 9-12个月库龄	
        /// </summary>
        public decimal inv_age_271_to_365_days { get; set; }

        /// <summary>
        /// 9-12个月库龄成本价
        /// </summary>
        public decimal inv_age_271_to_365_price { get; set; }

        /// <summary>
        /// 11-12个月库龄
        /// </summary>
        public decimal inv_age_331_to_365_days { get; set; }
        /// <summary>
        /// 11-12个月库龄成本价
        /// </summary>
        public decimal inv_age_331_to_365_price { get; set; }
        /// <summary>
        /// 12个月以上库龄
        /// </summary>
        public decimal inv_age_365_plus_days { get; set; }
        /// <summary>
        /// 12个月以上库龄成本价
        /// </summary>
        public decimal inv_age_365_plus_price { get; set; }
        /// <summary>
        /// 推荐操作
        /// </summary>
        public string recommended_action { get; set; }
        /// <summary>
        /// 售出率
        /// </summary>
        public string sell_through { get; set; }
        /// <summary>
        /// 预计冗余数量
        /// </summary>
        public string estimated_excess_quantity { get; set; }
        /// <summary>
        /// 预计30天仓储费用
        /// </summary>
        public string estimated_storage_cost_next_month { get; set; }
        /// <summary>
        /// 最低库存水平
        /// </summary>
        public string fba_minimum_inventory_level { get; set; }
        /// <summary>
        /// 库存水平健康度
        /// </summary>
        public string fba_inventory_level_health_status { get; set; }
        /// <summary>
        /// 历史供货天数
        /// </summary>
        public string historical_days_of_supply { get; set; }
        /// <summary>
        /// 历史供货天数成本价
        /// </summary>
        public string historical_days_of_supply_price { get; set; }
        /// <summary>
        /// 低库存水平费收取情况
        /// </summary>
        public string low_inventory_level_fee_applied { get; set; }
        /// <summary>
        /// 配送方式
        /// </summary>
        public string fulfillment_channel { get; set; }
        /// <summary>
        /// FBA可售信息列表，当仓库为共享仓库时，该字段才返回
        /// </summary>
        public fba_storage_quantity_list fba_storage_quantity_list { get; set; }

    }

    public class fba_storage_quantity_list
    {
        /// <summary>
        /// 店铺id
        /// </summary>
        public string sid { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// FBA可售数量
        /// </summary>
        public string quantity_for_local_fulfillment { get; set; }
    


    }




}
